he answer to everything is 42The answer to everything is 42The answer to everything is 42The answer to everything is 42The answer to everything is 42The answer to everything 0000000000
baud=57600
hgjhjgggj236
stop=10
data=8
parity=none
flowControl=XOnXOff
Send/Receive
Preferences
MenuB
gErrorCodeB
gAckMessageB
gMesTextB
gMessageB
cPortNamesB
|("Serial-GetPortNames"
Serial-GetPortNames
gMessageIDB
gSpeedB
gMessageSendB
gMessageReceivedB
ZA mesToSendB
mesReceivedB
mesequalB
]A gPortNameB
gTempResultReceivedB
_A gStopBitsB
`A gDataBits
gParityB
trueB
gFlowControlB
gAdvancedFlowControlB
Send/ReceiveB
To Send and Receive Demo
1999, Troi Automatisering
To Send and Receive Demo\
1999, Troi Automatisering
kWith this file you can send data out from one computer (the sender) to another computer (the receiver) via a serial cable.
The sender script will start to send the field mesToSend to the serial port data.
The receiver script will receive all the data and put it into the field mesReceived. After receiving all data the receiving script will compare the 2 fields.
Sending and Receiving
Set Port Preferences
To Main Menu
1999 Troi Automatisering
PreferencesB
error codeo
To Menup
Sending and
Receivingu
3a receiver
x mesToSend
mesReceived
mesequal
2 - open port
3b sender
1- set preferences
-then press this button on the sender computer
1press this button first on the receiving computer
1999 Troi Automatisering
Z!THIS IS A TEST
dit is een test
test 2
This is some sample text.
The Troi Serial Plug-in adds the following functions:
function name short description
Serial-Version check for correct version of the plug-in
Serial-GetPortsNames returns the names of all serial ports that are available on the computer
Serial-Open opens a serial port
Serial-Close closes a serial port
Serial-Receive receives data from a serial port
Serial-Send send data to a serial port
Serial-SetDispatchScript tell the plug-in which script to call whB
en data is received
Serial-DataWasReceived returns if data was received on a open port
Serial-RestoreSituation tell the plug-in to bring the original file back to the front
Opens a serial port with this name and the specified parameters.
Parameters
portname: the name of the port to open
switches: (optional) specifies the setting of the port like the speed of the port etc.
Result
Returned result is an error code:
0 no error
$$-50 paramErr There was an error with the parameter
$$-108 memFullErr Ran out of memory
97 portInUse Could not open port, the port is in use
$$-4210 portDoesnotExistErr A serial port with this name is not available on this computer
$$-4211 AllPortsNullErr No serial ports are available on this computer
Other errors might be returned.
Example usage
Set Field[ gErrorCode, External("Serial-Open" , "COM2 | baud=19200") ]
will open the COM2 port with a speed of 19200 baud.
Specifying the port settings
Default port settings
A serial port can be configured in a lot of
This is some sample text.
Using external functions
External functions for this plug-in can be used in a script step using a calculation. The external functions should not be used in a define field calculation.
IMPORTANT The Balance functions have to be used in a specific way, to create the desired effect. See the section on Balance functions for the specifics on this.
Serial-Version
Example usage: External(Serial-Version; "") will return "Troi Serial Plug-in 1.0b1".
IMPORTANT You shB
ould always check if the plug-in is loaded, by using this function. If the plug-in is not loaded use of external functions may result in unexpected result or data loss, as FileMaker will return an empty field to any external function that is not loaded.
dfgdfdfdfd
To Main Menu
To Menu
To Preferences
----- General ------
%Check for Presence of Serial plug-in
----- SERIAL PORT ------
Open Serial Port
Receiver
*Receive Data in global gTempResultReceived
Sender
Close Serial Port
%Check records for transmission errors
Wait a sec
----- Misc ------
Open file
Set all globals
# Check for existence of gPortName
BeepBeep
Set Dispatch Script
Handle Data Received
Reset Dispatcher Script
ways. These settings can be set by specifying switches. If you don't specify any switches the port is initialised to the following settings: a speed of 9600 baud, no parity, 8 data bits, 1 stop bit, no handshaking. If you want to use this setting open the port like this:
Set Field[gErrorCode, External("Serial-Open", "COM2") ]
Specifying other port settings
It is recommended that you set the port settings explicitly.. Give the settings by concatenating the desired settings keywords. Y
You can set the speed, the parity, the number of data and stopbits, and the handshaking to use. Note that the order of the keywords and case are ignored. All keywords are optional and should be separated by a space or a return.
Helvetica
Geneva
Arial
Times New Roman
Monaco
Courier
Times
Futura
Courier New
Palatino
Minion Web
New York
AppleGaramond Bk
AppleGaramond Lt
Open Serial Port
Open the serial portB!
] = ""
Cancelm
mFirst select a valid port name.D
|("Serial-Open"
] & "|" &
W & " " &
_ & " " &
` & " " &
a & " "&
Serial-Open
<> 0
= "$$-97"
$$-97
Cancelm
mThis port is in use.
= "$$-4210"
$$-4210
Cancelm
mThis portname does not exist.Jw
Cancelm
mAn error occurred
To Main Menu
|("Serial-DataWasReceived"
Serial-DataWasReceived
----- SERIAL PORT ------
A%Check for Presence of Serial plug-in
A4Important: ALWAYS check if the plug-in is available!B)Check if this is FileMaker 4.0 or higher.CQ
1)) < 4
Canceld
This file requires FileMaker 4.0 or higherE/Check if the Troi Grabber Plug-in is available.F|
|("Serial-Version"
"")
14 ) <> "Serial Plug-in"
Serial-Version
Serial Plug-in
) = 1
Canceld
The Serial Plug-in not found.
Please put The Serial Plug-in into the Extensions folder inside the FileMaker folder. Also enable all the plug-ins under the application preferences.
Canceld
The Serial Plug-in not found. Please put the this Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Set all globals
|("Troi-Set Default Separator"
"|")
Troi-Set Default Separator
A Open file
) = 2
----- General ------
----- Misc ------
BeepBeep
Close Serial Port
Open the serial portB<
|("Serial-Close"
Serial-Close
Sender
|("Serial-Send"
] & "|" &
Z & "##END")
Serial-Send
##END
<> 0
Cancelm
mAn Error occurredD@
10) = 0
Receiver
""""""
333333
DDDDDD
UUUUUU
ffffff
wwwwww
OKatisering
NDScherm reparatie
Cancelorganiseren:
naam bestand:
B5300 schermreparatie##ENDDear MiClick on ok and then start the sending computer...D$
"##END"
##END
- 1)
A%Check records for transmission errors
) = 0
Cancel
No errors in transmission.C
Cancel
There were errors in transmission.
To Preferences
Set Dispatch Script
|("Serial-SetDispatchScript"
) & "| scriptkey=1")
Serial-SetDispatchScript
| scriptkey=1
Handle Data Received
|("Serial-RestoreSituation"
Serial-RestoreSituation
A*Receive Data in global gTempResultReceived
|("Serial-Receive"
Serial-Receive
2 ) = "$$"
^ = "$$-28"
$$-28
Cancel
Open the port firstE-
^ = "$$-207"
$$-207
Cancel
Buffer overflow error.Gx
Cancel
An error occurred!
Reset Dispatcher Script
|("Serial-SetDispatchScript"
"")
Serial-SetDispatchScript
A# Check for existence of gPortName
A&Check if the port in the global existsBs
|("Serial-GetPortNames"
] & "
") = 0
Serial-GetPortNames
Canceld
The portname as specified in the global gPortName does not exist. Do you want to change the preferences now?D*
) =1
To Menu
Wait a sec
pending on the presense ...C
... of the Dialog plug-in.D
|("TrDl-Version"
"")
19 ) = "Troi Dialog Plug-in"
TrDl-Version
Troi Dialog Plug-in
|("TrDl-Version"
"")
19 ) = "Troi Dialog Plug-in"
TrDl-Version
Troi Dialog Plug-in
|("TrDl-DelayTicks"
"10")
TrDl-DelayTicks
HRPTH
FPTHAHKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
StudReg.fp3
StudReg.fp3
FMP3FMP3
Troi-Grabber-Plug-in1.0a1
HKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
Ethernet zone
McGee
peter
PRPTH
FPTHAPKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:samples:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
:samples:StudReg.fp3
alislis
k{k|w
[=g\gYg\.T
g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
NRPTH
FPTHANKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3
MSPCA
NAMEA
Overview.fp3
RPTHA
:docs:Overview.fp3
Overview.fp3
FMP3FMP3
NKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3